package com.wejoy.video.middle.station.data.service.alarm;

import com.wejoy.video.middle.station.data.domain.alarm.AlarmDetails;
import com.wejoy.video.middle.station.data.domain.workorder.WorkOrderInfo;
import com.wejoy.video.middle.station.data.vo.AlarmDataVO;

import java.util.List;
import java.util.Map;

/**
 * 工单主表
 *
 * @author miracle_j
 * @date 2024年12月12日 15:18:52
 */
public interface IAlarmDetailsService {
    /**
     * 保存或更新
     * @param req
     */
    void save(AlarmDetails req, String operator);

    /**
     * 插入
     *
     * @param alarmDetails alarmDetails
     * @return int
     */
    int insertSelective(AlarmDetails alarmDetails);

    /**
     * 主键更新
     *
     * @param alarmDetails alarmDetails
     * @return int
     */
    int updateSelectiveById(AlarmDetails alarmDetails);

    /**
     * 数量
     *
     * @param alarmDetails alarmDetails
     * @return int
     */
    int getCount(AlarmDetails alarmDetails);

    /**
     * 主键查询
     *
     * @param id id
     * @return AlarmDetails
     */
    AlarmDetails getOneById(Long id);

    /**
     * 多条
     *
     * @param alarmDetails alarmDetails
     * @return List<AlarmDetails>
     */
    List<AlarmDetails> getList(AlarmDetails alarmDetails);

    /**
     * 分页
     *
     * @param alarmDetails alarmDetails
     * @return List<AlarmDetails>
     */
    List<AlarmDetails> getPageList(AlarmDetails alarmDetails);

    /**
     * 审核
     * @param id
     * @param operator
     */
    void audit(Long id, String operator);

    /**
     * 取消审核
     * @param id
     * @param operator
     */
    void unaudit(Long id, String operator);

    /**
     * 删除
     * @param id
     * @param operator
     */
    void delete(Long id, String operator);

    List<Map<String,String>> getCountByalarmLocation(AlarmDetails alarmDetails);

    AlarmDetails getOneByEventId(String eventId);

//    AlarmDataVO getAlarmDataByDate(AlarmDetails alarmDetails);

}
